package com.lagou.module2homewor;

/**
 * 手机卡类
 */
public class IphoneCard {
    //卡类型
    private String cardType;
    //卡号
    private String cardNo;
    //用户名
    private String userName;
    //密码
    private String passWord;
    //账号余额
    private int accountBalance;
    //通话时长
    private int lengthOfCall;
    //上网流量
    private int interFlow;

    public IphoneCard() {
    }

    /**
     * 构造方法
     * @param cardType 手机卡种类
     * @param cardNo 手机卡号
     * @param userName 用户的名字
     * @param passWord 用户密码
     */
    public IphoneCard(String cardType, String cardNo, String userName, String passWord) {
        this.cardType = cardType;
        this.cardNo = cardNo;
        this.userName = userName;
        this.passWord = passWord;
    }

    public void show(){
        System.out.println(userName+",您的卡号是: "+cardNo+",当前余额是: "+accountBalance);
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public int getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(int accountBalance) {
        this.accountBalance = accountBalance;
    }

    public int getLengthOfCall() {
        return lengthOfCall;
    }

    public void setLengthOfCall(int lengthOfCall) {
        this.lengthOfCall = lengthOfCall;
    }

    public int getInterFlow() {
        return interFlow;
    }

    public void setInterFlow(int interFlow) {
        this.interFlow = interFlow;
    }
}
